package com.itsq.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 史先帅
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`change`")
@ApiModel(value="Change对象", description="")
public class Change implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "汽车分配记录表")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "汽车id")
    @TableField("car_id")
    private Integer carId;

    @ApiModelProperty(value = "单位id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "科室id")
    @TableField("department_id")
    private Integer departmentId;

    @ApiModelProperty(value = "创建时间")
    @TableField("cre_date")
    private Date creDate;

    @ApiModelProperty(value = "状态")
    @TableField("state")
    @TableLogic
    private Integer state;


    public static final String ID = "id";

    public static final String CAR_ID = "car_id";

    public static final String COMPANY_ID = "company_id";

    public static final String DEPARTMENT_ID = "department_id";

    public static final String CRE_DATE = "cre_date";

    public static final String STATE = "state";

}
